<!DOCTYPE html>
<html>

<head>
  <meta charset='utf-8'>
  <meta name='viewport' content='width=device-width,initial-scale=1,user-scalable=0'>
  <title>微信拆红包</title>
  <!--<script src='https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.0.2/js/swiper.min.js'></script>-->
  <!--<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.0.2/css/swiper.min.css'>-->
</head>

<body>
  <div id='app'></div>
  <!-- built files will be auto injected -->
</body>

</html>
<script>
  /**
   * [以iPhone6的设计稿为例js动态设置文档 rem 值]
   */
  (function (doc, win) {
    var docEl = doc.documentElement,
      resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
      recalc = function () {
        var clientWidth = docEl.clientWidth
        if (!clientWidth) return
        if (clientWidth >= 750) {
          clientWidth = 750
          doc.body.style.width = 750 + 'px'
        } else {
          doc.body.style.width = clientWidth + 'px'
        }
        // doc.body.style.height = clientHeight + 'px';
        doc.documentElement.style.height = doc.body.style.height = '100%'
        docEl.style.fontSize = 100 * (clientWidth / 750) + 'px'
        docEl.dataset.percent = 100 * (clientWidth / 750)
      }
    recalc()
    doc.documentElement.classList.add('iosx' + win.devicePixelRatio)
    if (!doc.addEventListener) return
    win.addEventListener(resizeEvt, recalc, false)
  })(document, window)
</script>
<script>
  // 注入手机端调试面板代码块,引入eruda
  (function () {
    var bp = document.createElement('script')
    var url = window.location.href
  if (
      url.search('localhost') > -1 ||
      url.search('192.168') > -1 ||
      url.search('127.0.0.1') > -1 ||
      url.search('dm.leyaoyao') > -1 ||
      url.search('debug=1') > -1
    ) {
      bp.src = '//cdn.bootcss.com/eruda/1.4.2/eruda.min.js'
      bp.async = true
      var s = document.getElementsByTagName('script')[0]
      s.parentNode.insertBefore(bp, s)
      bp.onload = function (params) {
        eruda.init({
          // 初始化
          tool: [
            'console',
            'elements',
            'network',
            'Resources',
            'sources',
            'info'
          ] // 定制功能栏,去除多余的功能
        })
        return eruda
      }
    }
  })()
</script>